package main

import (
	"context"

	"gitee.com/mkwchecking/sr-core/app/web"
	"gitee.com/mkwchecking/sr-core/config/source"
	"gitee.com/mkwchecking/sr-core/example/web/module"
)

func main() {
	app, err := web.NewApp(
		context.Background(),
		source.WithCfgFile("etc/config.yaml"),
	)

	if err != nil {
		panic(err)
	}

	app.AddDomain(module.NewTestModule())

	app.Start(context.Background())
}
